//导入request.js请求工具
import request from '@/utils/request.js'
//登录接口
export const userLoginService = (data) => {       //已改······························
    return request.post('/login',data)
}
export const userInfoService = () => {
    return request.get('/getUser');
}
export const deleteSessionOfTokenService = () => {
    return request.delete('/logout')
}
export const userRegisterService = (userRegisterData) => {
    return request.post('/register', userRegisterData);
}
export const getallmajorsService = () => {
    return request.get('/register/getallmajors');
}






































export const userInfoUpdateService = (userNewInfo) => {
    return request.put('user/update', userNewInfo)
}
export const userpasswordUpdateService = (data)=>{
    return request.put('/updatePwd',data)
}
export const userInfoUpdateAvatarService = (userNewInfo) => {
    return request.put('user/updateavatar', userNewInfo)
}